package org.example.demo;


public class Computer<T> {
    private T first;
    private T second;

    public T getFirst() {
        return first;
    }

    public void setFirst(T first) {
        this.first = first;
    }

    public T getSecond() {
        return second;
    }

    public void setSecond(T second) {
        this.second = second;
    }

    public static void main(String[] args) {
        Computer<Integer> c = new Computer<>();
        c.setFirst(10);
        c.setSecond(20);
        Computer<Double> c2 = new Computer<>();
        c2.setSecond(2.1);
    }
}
